package com.example.demo.service;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @Author tyy
 * @Description TODO
 * @Since 2022/2/26
 */
@Component("ss")
public class ZyFactoryBean implements FactoryBean{

    @Override
    public Object getObject() throws Exception {
        return "factorybean-bean init";
    }

    @Override
    public Class<?> getObjectType() {
        return String.class;
    }
}
